Document Solutions for PDF
DS.Documents.Imaging Assembly / GrapeCity.Documents.Layout.Composition Namespace / Layer Class / CreateVisual Method / CreateVisual(Contour,Boolean,Action<GcGraphics,Visual>) Method
A GrapeCity.Documents.Layout.Contour to be associated with the Visual.
Indicates whether a new GrapeCity.Documents.Layout.LayoutRect must be associated with the Visual.
A delegate that accepts a GrapeCity.Documents.Drawing.GcGraphics object and a Visual, and draws the visual on the graphics.

In This Topic
    CreateVisual(Contour,Boolean,Action<GcGraphics,Visual>) Method
    In This Topic
    Creates a Visual object that represents an element drawing the GrapeCity.Documents.Layout.Contour.
    Syntax
    'Declaration
     
    Public Overloads Function CreateVisual( _
       ByVal contour As Contour, _
       ByVal createRect As System.Boolean, _
       ByVal draw As System.Action(Of GcGraphics,Visual) _
    ) As Visual
    public Visual CreateVisual( 
       Contour contour,
       System.bool createRect,
       System.Action<GcGraphics,Visual> draw
    )

    Parameters

    contour
    A GrapeCity.Documents.Layout.Contour to be associated with the Visual.
    createRect
    Indicates whether a new GrapeCity.Documents.Layout.LayoutRect must be associated with the Visual.
    draw
    A delegate that accepts a GrapeCity.Documents.Drawing.GcGraphics object and a Visual, and draws the visual on the graphics.
    See Also